|
dcmotor31 2.2.1
|
This file contains API for DC Motor 31 Click Driver. More...
#include "drv_digital_out.h"#include "drv_digital_in.h"#include "drv_i2c_master.h"Go to the source code of this file.
Data Structures | |
| struct | dcmotor31_t |
| DC Motor 31 Click context object. More... | |
| struct | dcmotor31_cfg_t |
| DC Motor 31 Click configuration object. More... | |
Enumerations | |
| enum | dcmotor31_return_value_t { DCMOTOR31_OK = 0 , DCMOTOR31_ERROR = -1 } |
| DC Motor 31 Click return value data. More... | |
Functions | |
| void | dcmotor31_cfg_setup (dcmotor31_cfg_t *cfg) |
| DC Motor 31 configuration object setup function. | |
| err_t | dcmotor31_init (dcmotor31_t *ctx, dcmotor31_cfg_t *cfg) |
| DC Motor 31 initialization function. | |
| err_t | dcmotor31_default_cfg (dcmotor31_t *ctx) |
| DC Motor 31 default configuration function. | |
| err_t | dcmotor31_write_reg (dcmotor31_t *ctx, uint8_t reg, uint8_t data_in) |
| DC Motor 31 write reg function. | |
| err_t | dcmotor31_read_reg (dcmotor31_t *ctx, uint8_t reg, uint8_t *data_out) |
| DC Motor 31 read reg function. | |
| void | dcmotor31_enter_sleep (dcmotor31_t *ctx) |
| DC Motor 31 enter sleep mode function. | |
| void | dcmotor31_exit_sleep (dcmotor31_t *ctx) |
| DC Motor 31 exit sleep mode function. | |
| void | dcmotor31_enable_device (dcmotor31_t *ctx) |
| DC Motor 31 enable device function. | |
| void | dcmotor31_disable_device (dcmotor31_t *ctx) |
| DC Motor 31 disable device function. | |
| void | dcmotor31_enable_output (dcmotor31_t *ctx) |
| DC Motor 31 enable output function. | |
| void | dcmotor31_disable_output (dcmotor31_t *ctx) |
| DC Motor 31 disable output function. | |
| void | dcmotor31_set_forward_dir (dcmotor31_t *ctx) |
| DC Motor 31 set forward direction function. | |
| void | dcmotor31_set_reverse_dir (dcmotor31_t *ctx) |
| DC Motor 31 set reverse direction function. | |
| uint8_t | dcmotor31_get_int_pin (dcmotor31_t *ctx) |
| DC Motor 31 get INT pin function. | |
| err_t | dcmotor31_get_lo_pin (dcmotor31_t *ctx, uint8_t *state) |
| DC Motor 31 get LO pin state function. | |
| err_t | dcmotor31_set_torque (dcmotor31_t *ctx, uint8_t torque) |
| DC Motor 31 set torque function. | |
| void | dcmotor31_set_mode (dcmotor31_t *ctx, uint8_t mode) |
| DC Motor 31 set operation mode function. | |
This file contains API for DC Motor 31 Click Driver.